/** *******************************************************************
 * FlexDatabaseManager
 * Copyright (c) 2008 Jonnie Spratley. All Rights Reserved.
 * @author  Jonnie Spratley
 * @contact jonniespratley@gmail.com
 * @internal
 ******************************************************************* */
package com.jonniespratley.flexdatabasemanager.events.tables
{
	import com.jonniespratley.flexdatabasemanager.factories.SequenceChainEvent;
	import com.jonniespratley.flexdatabasemanager.vo.*;
	
	import flash.events.Event;
		
	public final class SelectedTableEvent extends SequenceChainEvent
	{
		public static const SELECTED_TABLE_EVENT:String = "SELECTED_TABLE_EVENT";
		
		public var aTable:TableVO;
		public var aDatabase:DatabaseVO;

		public function SelectedTableEvent( aDatabase:DatabaseVO, aTable:TableVO )
		{
			super( SELECTED_TABLE_EVENT );
			this.aDatabase = aDatabase;
			this.aTable = aTable;
			
		}
		
		override public function clone():Event
		{
			return new SelectedTableEvent( aDatabase, aTable );
		}
	}
}